package org.igeek.atomqq.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * 自己跑马灯的TextView
 * @author 作者 E-mail:hangxin1940@gmail.com
 * @version 创建时间：2011-9-1 下午11:26:13
 */
public class AlwaysMarqueeTextView extends TextView {
	private boolean marquee;

	public AlwaysMarqueeTextView(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
		marquee=false;
	}

	public AlwaysMarqueeTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		marquee=false;
	}

	public AlwaysMarqueeTextView(Context context) {
		super(context);
		marquee=false;
	}
	
	public void setMarquee(boolean marquee){
		this.marquee=marquee;
	}
	
	@Override
	public boolean isFocused() {
		return marquee;
	}
	
	@Override
	public void setFocusable(boolean focusable) {
		super.setFocusable(focusable);
	}

}
